.banner {
  .swiper-image {
    img {
      width: 100%;
      height: auto !important;
    }
  }

  /* 轮播 */
  .swiper-container {
    width: 100%;
    height: 450px;
  }

  ::v-deep {
    // 未选中
    .swiper-pagination-bullet {
      width: 80px;
      height: 8px;
      display: inline-block;
      border-radius: 4px;
      background: transparent;
      border: 1px solid #fff;
      opacity: 1;

      &::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 8px;
        border-radius: 4px;
        opacity: 1;
        background: rgba(255, 255, 255, 1);
        z-index: 2;
      }
    }

    // 选中状态
    .swiper-pagination-bullet-active {
      position: relative;

      &::after {
        transition: 2.5s width;
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 80px;
        height: 8px;
        border-radius: 4px;
        opacity: 1;
        background: rgba(255, 255, 255, 1);
        z-index: 2;
      }
    }
  }
}

.iswhat {
  padding: 50px 75px 0;
  height: 530px;

  h3 {
    width: 520px;
    height: 85px;
    margin: 0 auto;
    background: url('@/assets/images/cgft/cgft_icon30.png') no-repeat center
      center;
    background-size: contain;
  }
  .textbox {
    width: 100%;
    padding-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .desleft {
    width: 500px;
    padding-left: 20px;
    h6 {
      width: 500px;
      height: 22px;
      color: #000;
      font-weight: 600;
      padding-bottom: 15px;
      font-size: 20px;
      line-height: 22px;
      text-align: left;
      position: relative;
      margin-bottom: 25px;
      &::after {
        display: block;
        position: absolute;
        content: '';
        width: 50px;
        height: 2px;
        background-color: #e14946;
        left: 0;
        bottom: 0;
      }
    }

    p {
      width: 500px;
      height: 150px;
      color: #666;
      font-size: 18px;
      line-height: 30px;
      text-align: left;
      margin-bottom: 35px;
      span {
        color: #333;
        font-weight: 600;
        font-size: 22px;
      }
    }

    & > img {
      width: 440px;
      height: 60px;
    }
  }

  .advright {
    width: 500px;
    .item {
      display: flex;
      align-items: center;
      width: 498px;
      border: 1px solid #e14946;
      height: 83px;
      border-radius: 5px;
      margin-bottom: 15px;
      &:nth-child(3) {
        height: 108px;
        .iconleft {
          height: 108px;
          img {
            top: 40px;
          }
        }

        .textright {
          height: 108px;

          p {
            height: 52px;
            font-size: 14px;
            color: #333;
            text-align: left;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
          }
        }
      }

      .iconleft {
        width: 98px;
        height: 83px;
        position: relative;
        overflow: hidden;

        i {
          position: absolute;
          width: 135px;
          height: 135px;
          background-color: #e14946;
          border-radius: 50%;
          left: -60px;
          top: 50%;
          margin-top: -67px;
        }

        img {
          position: absolute;
          width: 37px;
          height: 36px;
          left: 20px;
          top: 20px;
        }

        &:nth-child(2) img {
          position: absolute;
          width: 42px;
          height: 42px;
          left: 20px;
          top: 20px;
        }

        &:nth-child(3) img {
          position: absolute;
          width: 40px;
          height: 32px;
          left: 20px;
          top: 20px;
        }
      }

      .textright {
        width: 380px;
        height: 83px;
        position: relative;
        overflow: hidden;

        h5 {
          width: 360px;
          font-size: 18px;
          color: #333;
          height: 20px;
          font-weight: 600;
          text-align: left;
          line-height: 20px;
          margin-top: 20px;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
        }
        p {
          width: 380px;
          font-size: 14px;
          text-align: left;
          color: #333;
          margin-top: 10px;
          height: 26px;
          line-height: 26px;
        }
      }
    }
  }
}

.advbox {
  height: 300px;
  background-color: #f4f4f4;

  & > div {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  .advitem {
    border-top: 1px solid transparent;
    width: 290px;
    text-align: center;
    margin-right: 90px;
    &:last-child {
      margin-right: 0px;
    }

    h6 {
      margin-top: 45px;
      font-size: 18px;
      color: #333;
      font-weight: 600;
      line-height: 20px;
      text-align: center;
    }
    h4 {
      margin-top: 20px;
      font-size: 50px;
      color: #e14946;
      line-height: 52px;
      text-align: center;
      font-weight: normal;
    }
    h5 {
      margin-top: 35px;
      font-size: 14px;
      color: #666;
      line-height: 16px;
      text-align: center;
    }
    p {
      margin-top: 10px;
      font-size: 14px;
      color: #666;
      line-height: 16px;
      text-align: center;
    }
  }
}

.whatdo {
  background-color: #fff;
  padding-top: 60px;
  h3 {
    width: 708px;
    height: 86px;
    margin: 0 auto;
    background: url('@/assets/images/cgft/cgft_icon31.png') no-repeat center
      center;
    background-size: contain;
  }
  .dobox {
    width: 100%;
    padding-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .doitem {
      width: 378px;
      height: 198px;
      border: 1px solid #e14946;
      border-radius: 5px;
      position: relative;
      overflow: hidden;
      margin-right: 30px;

      &:last-child {
        margin-right: 0px;
      }

      i {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background-color: #e14946;
        position: absolute;
        right: -60px;
        top: -60px;
      }
      span {
        color: #fff;
        font-size: 20px;
        text-align: center;
        border-radius: 50%;
        position: absolute;
        right: 5px;
        top: 20px;
        width: 40px;
        height: 22px;
        line-height: 22px;
      }
      h5 {
        color: #e14946;
        font-size: 18px;
        margin-top: 45px;
        margin-left: 25px;
        text-align: left;
        font-weight: 600;
        width: 270px;
        height: 60px;
        line-height: 30px;
      }
      p {
        color: #666;
        font-size: 16px;
        margin-top: 10px;
        margin-left: 25px;
        text-align: left;
        width: 305px;
        height: 60px;
        line-height: 30px;
      }
    }
  }
}

.whystudy {
  background-color: #fff;
  padding-top: 60px;
  h3 {
    width: 708px;
    height: 86px;
    margin: 0 auto;
    background: url('@/assets/images/cgft/cgft_icon32.png') no-repeat center
      center;
    background-size: contain;
  }
  h4 {
    margin-top: 60px;
    font-size: 30px;
    color: #333;
    text-align: center;
    line-height: 32px;
    height: 32px;
    margin-bottom: 60px;
    font-weight: normal;
    span {
      color: #e14946;
    }
  }

  .whyone {
    width: 1200px;
    height: 375px;
    margin: 0 auto;
    background: url('@/assets/images/cgft/cgft_icon39.png') no-repeat 0 center;
    background-size: contain;
    position: relative;
    & > div {
      position: absolute;
      bottom: 0;
      width: 300px;
      border-radius: 5px;
    }

    .oneitem {
      height: 220px;
      background-color: #e35956;
      left: 0;
    }
    .twoitem {
      height: 240px;
      left: 300px;
      background-color: #e14f4d;
    }
    .threeitem {
      height: 270px;
      left: 600px;
      background-color: #e14744;
    }

    .fouritem {
      height: 300px;
      left: 900px;
      background-color: #e04744;
    }

    & > div {
      h5 {
        position: absolute;
        text-align: center;
        background-color: #f4f4f4;
        color: #e14946;
        width: 180px;
        font-size: 18px;
        height: 50px;
        left: 50%;
        top: -8px;
        margin-left: -90px;
        line-height: 50px;
        border-radius: 5px;
      }
      h6 {
        position: absolute;
        font-weight: 600;
        font-size: 18px;
        text-align: center;
        color: #ffffff;
        width: 100%;
        height: 40px;
        left: 0;
        top: 50px;
        line-height: 40px;
        &::after {
          display: block;
          content: '';
          background-color: #fff;
          position: absolute;
          width: 50px;
          height: 2px;
          left: 50%;
          margin-left: -25px;
          bottom: 0;
        }
      }

      p {
        position: absolute;
        font-size: 14px;
        color: #ffffff;
        width: 280px;
        left: 50%;
        margin-left: -140px;
        top: 110px;
        line-height: 22px;
      }
    }
  }
}

.twowhy {
  padding-top: 60px;

  h3 {
    width: 100%;
    height: 91px;
    margin: 0 auto;
    background: url('@/assets/images/cgft/cgft_icon33.png') no-repeat 0 center;
    background-size: contain;
    margin-bottom: 90px;
  }

  .clearfix {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .items {
    .leftimg {
      width: 78px;
      height: 78px;
      border: 1px solid #e14946;
      border-radius: 5px;
      background: url('@/assets/images/cgft/cgft_icon06.png') no-repeat center
        center;
      background-size: 43px 38px;
    }

    &:nth-child(2n + 1) {
      width: 515px;
      height: 105px;
      margin-bottom: 40px;
      margin-right: 90px;
      overflow: hidden;

      .righttext {
        width: 405px;
        height: 105px;
        margin-left: 25px;
      }
    }
    &:nth-child(2n + 2) {
      width: 565px;
      height: 105px;
      margin-bottom: 40px;
      overflow: hidden;

      .righttext {
        width: 455px;
        height: 105px;
        margin-left: 25px;
      }
    }

    .righttext {
      h6 {
        font-size: 18px;
        color: #333;
        font-weight: 600;
        text-align: left;
        height: 20px;
        line-height: 20px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
      }

      p {
        margin-top: 15px;
        font-size: 14px;
        color: #666;
        line-height: 24px;
        max-height: 96px;
        text-align: left;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
      }
    }

    &:nth-child(2) .leftimg {
      background: url('@/assets/images/cgft/cgft_icon09.png') no-repeat center
        center;
      background-size: 40px 40px;
    }
    &:nth-child(3) .leftimg {
      background: url('@/assets/images/cgft/cgft_icon07.png') no-repeat center
        center;
      background-size: 39px 39px;
    }
    &:nth-child(4) .leftimg {
      background: url('@/assets/images/cgft/cgft_icon10.png') no-repeat center
        center;
      background-size: 40px 40px;
    }
    &:nth-child(5) .leftimg {
      background: url('@/assets/images/cgft/cgft_icon08.png') no-repeat center
        center;
      background-size: 36px 34px;
    }
    &:nth-child(6) .leftimg {
      background: url('@/assets/images/cgft/cgft_icon11.png') no-repeat center
        center;
      background-size: 38px 32px;
    }
  }
}

.threewhy {
  background-color: #e14946;
  padding: 70px 0 65px 0;

  .clearfix {
    display: flex;
    align-items: center;
    justify-content: space-between;

    h4 {
      width: 220px;
      height: 60px;
      margin: 0 auto;
      margin-top: 30px;
    }
  }

  .threeitem {
    background-color: #fff;
    border-radius: 5px;
    width: 570px;
    height: 435px;

    h4 {
      width: 220px;
      height: 60px;
      margin: 0 auto;
      margin-top: 30px;
      background: url('@/assets/images/cgft/cgft_icon34.png') no-repeat center
        center;
      background-size: contain;
    }
  }

  .fouritem {
    // margin-left: 60px;
    background-color: #fff;
    border-radius: 5px;
    width: 570px;
    height: 435px;

    h4 {
      background: url('@/assets/images/cgft/cgft_icon35.png') no-repeat center
        center;
      background-size: contain;
    }
  }

  .imgbox {
    background-color: #fff;
    width: 450px;
    height: 260px;
    margin: 35px auto 0;
    img {
      float: left;
      width: 208px;
      height: 71px;
      margin-right: 33px;
      margin-bottom: 24px;

      &:nth-child(2n + 2) {
        margin-right: 0px;
      }
    }
    p {
      float: left;
      width: 208px;
      height: 70px;
      margin-right: 30px;
      margin-bottom: 24px;
      line-height: 70px;
      font-size: 0;
      border: 1px solid #ecebeb;
      border-radius: 5px;
      &:nth-child(2n + 2) {
        margin-right: 0px;
      }

      i {
        display: inline-block;
        vertical-align: middle;
        width: 40px;
        height: 40px;
        margin-left: 15px;
        border: 1px solid #e04744;
        border-radius: 50%;
      }

      &:nth-child(1) i {
        background: url('@/assets/images/cgft/cgft_icon22.png') no-repeat center
          center;
        background-size: 25px 18px;
      }
      &:nth-child(2) i {
        background: url('@/assets/images/cgft/cgft_icon21.png') no-repeat center
          center;
        background-size: 26px 22px;
      }
      &:nth-child(3) i {
        background: url('@/assets/images/cgft/cgft_icon20.png') no-repeat center
          center;
        background-size: 22px 18px;
      }
      &:nth-child(4) i {
        background: url('@/assets/images/cgft/cgft_icon19.png') no-repeat center
          center;
        background-size: 24px 24px;
      }
      &:nth-child(5) i {
        background: url('@/assets/images/cgft/cgft_icon18.png') no-repeat center
          center;
        background-size: 23px 23px;
      }

      span {
        display: inline-block;
        vertical-align: middle;
        font-size: 18px;
        color: #333;
        margin-left: 15px;
      }
    }
  }
}

.teacherbox {
  width: 100%;
  height: 890px;
  padding-top: 90px;
  background-color: #f4f4f4;

  @mixin paginationBullet {
    width: 156px;
    height: 208px;
    border-radius: 5px;
    background-color: #fff;
    background-size: contain;
  }

  & > h3 {
    width: 790px;
    height: 104px;
    margin: 0 auto;
    background: url('@/assets/images/cgft/cgft_icon36.png') no-repeat center
      center;
    background-size: contain;
    margin-bottom: 65px;
  }

  .photo_area {
    width: 1010px;
    padding: 0 95px;

    background: #fff;
    height: 630px;
    overflow: hidden;
    position: relative;

    .swiper-container {
      position: initial;
      .swiper-button-next,
      .swiper-button-prev {
        top: 28%;
        color: #666666;
        width: 38px;
        text-align: center;
        height: 65px;
        border-radius: 2px;
        background-color: #f4f4f4;

        &::after {
          font-size: 35px;
        }
      }

      .swiper-button-prev {
        left: 20px;
      }
      .swiper-button-next {
        right: 28px;
      }

      .swiper-pagination {
        bottom: 22px;

        ::v-deep {
          .swiper-pagination-bullet:hover {
            opacity: 1;
          }

          .swiper-pagination-bullet:nth-child(1) {
            background: url('@/assets/images/cgft/cgft_icon26.png') no-repeat
              center center;
            @include paginationBullet();
          }
          .swiper-pagination-bullet:nth-child(2) {
            background: url('@/assets/images/cgft/cgft_icon24.png') no-repeat
              center center;
            @include paginationBullet();
          }
          .swiper-pagination-bullet:nth-child(3) {
            background: url('@/assets/images/cgft/cgft_icon25.png') no-repeat
              center center;
            @include paginationBullet();
          }
          .swiper-pagination-bullet:nth-child(4) {
            background: url('@/assets/images/cgft/cgft_icon27.png') no-repeat
              center center;
            @include paginationBullet();
          }
          .swiper-pagination-bullet:nth-child(5) {
            background: url('@/assets/images/cgft/cgft_icon28.png') no-repeat
              center center;
            @include paginationBullet();
          }
          .swiper-pagination-bullet:nth-child(6) {
            background: url('@/assets/images/cgft/cgft_icon29.png') no-repeat
              center center;
            @include paginationBullet();
          }
        }
      }
    }
  }

  .swiper-slide {
    & > div {
      vertical-align: middle;
      text-align: center;
      width: 1010px;
      height: 630px;
      overflow: hidden;

      a {
        display: inline-block;
        width: 100%;
        // height: 100%;
        display: flex;
        align-items: center;

        .leftimg {
          width: 270px;
          height: 360px;

          img {
            width: 100%;
            height: 100%;
          }
        }
        .textright {
          width: 700px;
          margin-left: 40px;
          height: 360px;
          text-align: left;

          h3 {
            margin-top: 85px;
            height: 50px;
            line-height: 50px;
            span {
              float: left;
              padding: 0 30px;
              color: #fff;
              font-size: 30px;
              height: 50px;
              font-weight: 600;
              line-height: 50px;
              border-radius: 5px;
              background-color: #e14946;
            }
          }

          h4 {
            margin-top: 10px;
            font-size: 24px;
            color: #333;
            height: 34px;
            line-height: 34px;
          }

          .tags {
            margin-top: 10px;
            p {
              font-size: 16px;
              color: #666;
              height: 26px;
              line-height: 26px;
            }
          }
        }
      }
    }
  }
}

.causebox {
  width: 100%;
  padding-top: 80px;

  h3 {
    width: 100%;
    height: 91px;
    margin: 0 auto;
    background: url('@/assets/images/cgft/cgft_icon37.png') no-repeat center
      center;
    background-size: contain;
    margin-bottom: 60px;
  }
  .clearfix {
    font-size: 0;
    text-align: left;
    .causeitem {
      width: 280px;
      position: relative;
      background-color: #fff;
      box-shadow: 0 0 3px 3px #eaeaea;
      margin-bottom: 24px;
      margin-right: 25px;
      border-bottom: 1px solid transparent;
      display: inline-block;

      &:nth-child(4n + 4) {
        margin-right: 0px;
      }

      .tag {
        position: absolute;
        width: 70px;
        height: 41px;
        left: 1px;
        top: 13px;
      }

      .causeimg {
        width: 280px;
        height: 180px;
        border-radius: 5px;
      }
      .causename {
        padding: 15px;
        color: #333;
        font-size: 14px;
        line-height: 20px;
        height: 40px;
      }
      .freestudy {
        display: block;
        margin: 0 auto;
        width: 118px;
        height: 30px;
        color: #e14946;
        font-size: 16px;
        text-align: center;
        line-height: 30px;
        border: 1px solid #e04946;
        border-radius: 5px;
        background-color: #fff;
        margin-bottom: 15px;
      }
    }
  }

  .more_cause {
    display: block;
    margin: 10px auto 20px;
    width: 180px;
    font-size: 16px;
    color: #fff;
    height: 50px;
    line-height: 50px;
    background-color: #e14946;
    border-radius: 5px;
    text-align: center;
  }
}

.questionbox {
  width: 100%;
  padding-top: 80px;
  height: 530px;

  h3 {
    width: 559px;
    height: 85px;
    margin: 0 auto;
    background: url('@/assets/images/cgft/cgft_icon38.png') no-repeat 0 center;
    background-size: contain;
    margin-bottom: 65px;
  }

  .itembox {
    .items {
      width: 380px;
      height: 70px;
      margin-right: 30px;
      text-align: center;
      font-size: 20px;
      color: #333;
      line-height: 70px;
      background-color: #f4f4f4;
      border-radius: 5px;
      margin-bottom: 30px;

      &:hover {
        color: #fff;
        background-color: #e14946;
      }
    }

    a {
      float: left;
      &:nth-child(3n + 3) .items {
        margin-right: 0px;
      }
    }
  }

  .friendlinks {
    width: 100%;
    padding: 10px 0 20px;
    text-align: left;

    p {
      text-align: left;
      font-size: 0;
      span {
        display: inline-block;
        vertical-align: middle;
        padding-right: 10px;
        font-size: 18px;
        line-height: 30px;
        color: #333;
      }
      a {
        display: inline-block;
        vertical-align: middle;
        padding: 0 10px;
        font-size: 18px;
        line-height: 30px;
        color: #333;
      }
    }
  }
}
